<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>车生活</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="车生活"/>
  <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">
  <link rel="stylesheet" href="assets/css/amazeui.min.css">
  <link rel="stylesheet" href="assets/css/app.css">
</head>
<body>
<header data-am-widget="header" class="am-header am-header-default">
  <div class="am-header-left am-header-nav">
    <a href="javascript:history.go(-1)" class="">
      <i class="am-header-icon am-icon-chevron-left"></i>
    </a>
  </div>
  <h1 class="am-header-title">
    <a href="#title-link" class="">发表评价</a>
  </h1>
  <div class="am-header-right am-header-nav">
    <a href="javascript:;" id="nav_click" class="">
      <i class="am-menu-toggle-icon am-icon-th-large am-icon-sm"></i>
    </a>
  </div>
</header>

<!--分割空白-->
<div style="height:70px"></div>
<div class="am-list-news-bd">
    <div class="am-list">
      <!--缩略图在标题左边-->
      <div class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left" ontouchstart="this.style.background='#eeeeee'" ontouchend="this.style.background=''">
        <a href="serdetail.html" class="am-detail-a">
        	<div class="am-u-sm-4 am-list-thumb">
            <img src="assets/i/union/limo/xiche.jpg" class="am-img-thumbnail">
       	 </div>
     	   <div class=" am-u-sm-8 am-list-main">
          <h3 class="am-list-item-hd">
            人工普通洗车
          </h3>
          <div class="am-list-item-text am-text-truncate">
          	蜡水洗车，越洗越想洗，非一般的感觉
          </div>
          <div><span class="am-icon-rmb am-detail-price-new">18&nbsp;&nbsp;</span>
          	<span class="am-icon-rmb am-detail-price-old">30</span>
          	<span class="am-badge am-badge-secondary  am-radius">
          		查看详情
          	</span>
          </div>
       	 </div>
        </a>
      </div>
    </div>
  </div>
  <div class="am-g">
  	<form class="am-form-control" action="">
	  	<div class="am-u-sm-12 pingfen">
	  		<div class="am-u-sm-3 am-text-lg ">评分</div>
	  		<div class="am-u-sm-9 am-star-lg am-star-color">
		  		<span class="star1 am-icon-star-o "></span>
		  		<span class="star2 am-icon-star-o"></span>
		  		<span class="star3 am-icon-star-o"></span>
		  		<span class="star4 am-icon-star-o"></span>
		  		<span class="star5 am-icon-star-o"></span>
		  		
	  		</div>
	  		<input type="hidden" id="star" />
	  	</div>
	  	<div class="am-u-sm-12 ">
	  		<textarea id="pingjia" class="am-u-sm-12 am-center" rows="" cols="" minlength="5"></textarea>
	  	</div>
	  	<div class="am-u-sm-12 ">
         <button class="am-btn am-btn-primary am-u-sm-6 am-btn-block" id="submit" type="submit">提交</button>
	  	</div>
	  	
	  	<div class="am-u-sm-6">
	  		<div style="display: none;padding: 0.3rem;" class="am-alert am-alert-danger am-text-sm">*请先评分</div>
	  	</div>
	  	
  	</form>
  </div>
<script type="text/x-handlebars-template" id="amz-tpl">
  {{>navbar navbar}}
</script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/handlebars.min.js"></script>
<script src="assets/js/amazeui.widgets.helper.js"></script>
<script src="assets/js/app.js"></script>
<script type="text/javascript">
  $('#submit').click(function () {
  	var star = $(".am-icon-star").size();
  	if (star < 1) {
  		  $(".am-alert").show();
  		  return false;
  	}
  	$("#star").val(star);
    var $btn = $(this)
    $btn.button('loading');
      setTimeout(function(){
        $btn.button('reset');
    }, 2000);
    
  });

  $(function() {
    var $star1 = $(".star1");
    var $star2 = $(".star2");
    var $star3 = $(".star3");
    var $star4 = $(".star4");
    var $star5 = $(".star5");
			$star1.hover(function(){
				$star1.removeClass('am-icon-star-o').addClass('am-icon-star');
				$star2.removeClass('am-icon-star').addClass('am-icon-star-o');
			  $star3.removeClass('am-icon-star').addClass('am-icon-star-o');
			  $star4.removeClass('am-icon-star').addClass('am-icon-star-o');
			  $star5.removeClass('am-icon-star').addClass('am-icon-star-o');
			});
			$star2.hover(function(){
			  $star1.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star2.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star3.removeClass('am-icon-star').addClass('am-icon-star-o');
			  $star4.removeClass('am-icon-star').addClass('am-icon-star-o');
			  $star5.removeClass('am-icon-star').addClass('am-icon-star-o');
		  });
		  $star3.hover(function(){
			  $star1.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star2.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star3.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star4.removeClass('am-icon-star').addClass('am-icon-star-o');
			  $star5.removeClass('am-icon-star').addClass('am-icon-star-o');
		  });
		  $star4.hover(function(){
			  $star1.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star2.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star3.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star4.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star5.removeClass('am-icon-star').addClass('am-icon-star-o');
		  });
		  $star5.hover(function(){
			  $star1.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star2.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star3.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star4.removeClass('am-icon-star-o').addClass('am-icon-star');
			  $star5.removeClass('am-icon-star-o').addClass('am-icon-star');
		  });
	});
</script>


</body>
</html>
